export default [
  {
    name: "home",
    path: "/home",
    component: () => import("../views/Home"),
    meta: { isShow: true },
  },
  {
    name: "login",
    path: "/login",
    component: () => import("../views/Login"),
    meta: { isShow: true },
  },
  {
    name: "register",
    path: "/register",
    component: () => import("../views/Register"),
    meta: { isShow: true },
  },
  {
    name: "search",
    path: "/search",
    component: () => import("../views/Search"),
  },
  {
    name: "detail",
    path: "/detail/:id",
    component: () => import("../views/Detail"),
    props: true,
  },
  {
    name: "shopcart",
    path: "/shopcart",
    component: () => import("../views/ShopCart"),
  },
  {
    name: "addshopcart",
    path: "/addshopcart",
    component: () => import("../views/AddCartSuccess"),
  },
  {
    name: "trade",
    path: "/trade",
    component: () => import("../views/Trade"),
  },
  {
    name: "center",
    path: "/center",
    component: () => import("../views/Center"),
  },
  {
    name: "pay",
    path: "/pay",
    component: () => import("../views/Pay"),
  },
  {
    name: "paysuccess",
    path: "/paysuccess",
    component: () => import("../views/PaySuccess"),
  },
  {
    path: "/",
    redirect: "/home",
  },
]
